<?php

include('../include/api.php');
include('../include/security.php');
include($siteLocalPath."/dbConnect.php");
include($siteLocalPath."/classes/class.page.php");
include($siteLocalPath."/classes/class.member.php");
include ($siteLocalPath."/libs/grid/phpmydatagrid.class.php");
// Load member data


$member=new Member();
$mdata=$member->find("member_ID='".$_SESSION['S_memberID']."'");


/* Create object */
	$objGrid = new datagrid;
	$objGrid -> methodForm("post");
	$objGrid ->pathtoimages($siteHttpPath."/libs/grid/images/");
	$objGrid -> friendlyHTML();
	$objGrid -> closeTags(true);  
	$objGrid ->language($_SESSION['S_memberLang']);
	$objGrid -> form('skyform',true);
	//$objGrid -> searchby("member_id,firstName,lastName,loginName,email"); 
$objGrid->isADO;
	$objGrid -> conectadb($host, $usernamedb, $passworddb, $database,true,$dbtype);
	$objGrid -> tabla ("config");
	$objGrid -> buttons(false,true,false,false);
	$objGrid -> keyfield("siteID");

	
	$objGrid -> decimalDigits(2);
	$objGrid -> decimalPoint(",");
	
	//$objGrid -> datarows(20); 
	//$objGrid -> paginationmode('links'); 

	
	$objGrid -> FormatColumn("siteID","siteID", 0, 0, 2, "0",0,0);
	$objGrid -> FormatColumn("siteName",$Q['siteName'], 30, 30, 0, "100");
	$objGrid -> FormatColumn("siteEmail",$Q['email'], 30, 30, 0, "100");
	$objGrid -> FormatColumn("siteURL",$Q['url'], 30, 30, 0, "100");
//	$objGrid -> FormatColumn("siteCopyrights",$Q['copyright'], 30, 30, 0, "100");
	$objGrid -> FormatColumn("sitePageTitle",$Q['title'], 30, 4, 0, "200","center","textarea");
	$objGrid -> FormatColumn("siteStatus",$Q['isopen'], 30, 30, 0, "50","center","checkbox");
	$objGrid -> FormatColumn("siteNonActiveText",$Q['siteNonActiveText'], 30, 4, 0, "200","center","textarea");
	$objGrid -> FormatColumn("siteIsRegister",$Q['siteIsRegister'], 30, 30, 0, "100","center","checkbox");
	$objGrid -> FormatColumn("siteRegisterText",$Q['siteRegisterText'], 30, 4, 0, "200","center","center","textarea");
	$objGrid -> FormatColumn("defaultFreeCredits",$Q['defaultFreeCredits'], 30, 30, 0, "50");

	

	
	$pageTitleUp=$Q['adminwebsite'];
	$pageTitle=$Q['adminwebsite'];
	
	include($themesLocalPath."/".$themeName."templates/master.php");
	

?>
